package com.crk.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.crk.entity.Doctype;
import com.crk.service.IDoctypeService;
import com.crk.util.RestResult;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author com.crk
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/doctype")
@CrossOrigin
public class DoctypeController {

	@Autowired
	private IDoctypeService docTypeService;
	
	@RequestMapping("/getType")
	public RestResult<Doctype> getType(){
		List<Doctype> list = docTypeService.list();
		return RestResult.ok(list);
	}
}

